package cn.bytets.speed.provider;

import cn.bytets.speed.bean.DemoServer;
import cn.bytets.speed.bean.impl.DemoServerImpl;

/**
 * 消费者
 */
public class RpcProvider {

    public static void main(String[] args) {
        RpcServiceConfig<DemoServer> config = new RpcServiceConfig<>();
        config.setInterfaceClass(DemoServer.class);
        config.setRef(DemoServerImpl.class);
        config.initConfig();
        config.start();
    }
}
